import request from '@/utils/axios'
var qs = require('qs');

// 获取活动管理列表
export function getEventList(params) {
  return request({
    url: '/activity/read',
    method: 'post',
    data: qs.stringify(params)
  });
}

// 获取搜索栏中得cp集合
export function getCpList(params) {
  return request({
    url: '/activity/get_cp_list',
    method: 'post',
    data: qs.stringify(params)
  });
}

// 获取搜索栏中的游戏列表
export function getGameList(params) {
  return request({
    url: '/activity/get_game_list',
    method: 'post',
    data: qs.stringify(params)
  });
}

// 上线/下线/删除活动
export function operateEvent(params) {
  return request({
    url: '/activity/setting',
    method: 'post',
    data: qs.stringify(params)
  });
}

// 添加活动
export function addEvent(params) {
  return request({
    url: '/activity/create',
    method: 'post',
    data: qs.stringify(params)
  });
}
// 修改活动
export function editEvent(params) {
  return request({
    url: '/activity/edit',
    method: 'post',
    data: qs.stringify(params)
  });
}
// 克隆活动
export function copyEvent(params) {
  return request({
    url: '/activity/clone',
    method: 'post',
    data: qs.stringify(params)
  });
}




//获取活动申请列表
export function getApplyList(params) {
  return request({
    url: '/activity/get_record_list',
    method: 'post',
    data: qs.stringify(params)
  });
}
// 审核通过/驳回
export function operateApply(params) {
  return request({
    url: '/activity/apply_remarks',
    method: 'post',
    data: qs.stringify(params)
  });
}

// 充值明细
export function chargeDetail(params) {
  return request({
    url: '/activity/get_charge_list',
    method: 'post',
    data: qs.stringify(params)
  });
}

// 一键通过
export function onekeyPass(params) {
  return request({
    url: '/activity/batch_accept',
    method: 'post',
    data: qs.stringify(params)
  });
}
//编辑/克隆
export function editCopy(params) {
  return request({
    url: '/activity/get_activity_content',
    method: 'post',
    data: qs.stringify(params)
  });
}

// 活动内容详情
export function activityDetail(params) {
  return request({
    url: '/activity/get_activity_content',
    method: 'post',
    data: qs.stringify(params)
  });
}
// 申请明细 
export function applyDetail(params) {
  return request({
    url: '/activity/get_activity_detailed',
    method: 'post',
    data: qs.stringify(params)
  });
}

// 获取cdk满足档位
export function getCdkRange(params) {
  return request({
    url: '/activity/activity_apply_cdk_stage',
    method: 'post',
    data: qs.stringify(params)
  });
}
//获取备注审核列表
export function getRemarkList(params) {
  return request({
    url: '/activity/get_remrks_list',
    method: 'post',
    data: qs.stringify(params)
  });
}
// 修改备注
export function changeRemark(params) {
  return request({
    url: '/activity/edit_remrks',
    method: 'post',
    data: qs.stringify(params)
  });
}
// 审核
export function passRemark(params) {
  return request({
    url: '/activity/set_remrks_accesss',
    method: 'post',
    data: qs.stringify(params)
  });
}
// 一键审核
export function onePassRemark(params) {
  return request({
    url: '/activity/batch_set_remrks_accesss',
    method: 'post',
    data: qs.stringify(params)
  });
}